package com.work.simpleFactory;

/**
 * @author https://gitee.com/zhengshengjun
 * @date 2023/10/15.
 */
public class Factory {

    public static Tv createTV(String type) {
        switch (type) {
            case "HX":
                return new HxTvFactory().createTv();
            case "H":
                return new HTvFactory().createTv();
            default:
                return new HTv();
        }
    }
}
